{{/*
  ENGLISH

  This template defines contents of the password reset email.

  See explanation in ./email-validation-en.templ
*/}}


{{define "subject" -}}
Reset Tinode password
{{- end}}

{{define "body_html" -}}
<html>
<body>

<p>Hello.</p>

<p>You recently requested to reset the password for your <a href="{{.HostUrl}}">Tinode</a> account.
Use the link or code below to reset it. The link and code are valid for the next 24 hours only.</p>

<blockquote><a href="{{.HostUrl}}#reset?scheme={{.Scheme}}&code={{.Code}}&cred={{.Cred}}">Click</a> to reset your password.</blockquote>

<p>If you’re having trouble with the link above, copy and paste the URL below into your web browser:</p>
<blockquote>
<a href="{{.HostUrl}}#reset?scheme={{.Scheme}}&code={{.Code}}&cred={{.Cred}}">{{.HostUrl}}#reset?scheme={{.Scheme}}&code={{.Code}}&cred={{.Cred}}</a>
</blockquote>

<p>Please enter the following code if prompted:</p>
<blockquote><big>{{.Code}}</big></blockquote>

{{with .Login}}
<p>In case you have forgotten, here is your login: {{.}}.</p>
{{end}}

<p>If you did not request a password reset, please ignore this message.</p>

<p><a href="https://tinode.co/">Tinode Team</a></p>

</body>
</html>
{{- end}}

{{define "body_plain" -}}

Hello.

You recently requested to reset the password for your Tinode account ({{.HostUrl}}).
Use the link or code below to reset it. The link and code are valid for the next 24 hours only.

   {{.HostUrl}}#reset?scheme={{.Scheme}}&code={{.Code}}&cred={{.Cred}}

If you’re having trouble with clicking the link above, copy and paste it into your web browser.

Please enter the following code if prompted:
   {{.Code}}

{{- with .Login}}
In case you have forgotten, here is your login: {{.}}.
{{end -}}

If you did not request a password reset, please ignore this message.

Tinode Team
https://tinode.co/

{{- end}}
